﻿namespace = seizing_collasuyu

# Seizing the southern ranges JE completion
seizing_collasuyu.1 = {
	type = country_event
	placement = ROOT

	title = seizing_collasuyu.1.t
	desc = seizing_collasuyu.1.d
	flavor = seizing_collasuyu.1.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/southamerica_aristocrats.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/aristocrats"

	icon = "gfx/interface/icons/event_icons/event_military.dds"

	trigger = {
		# complete je_seizing_collasuyu
	}

	immediate = {
		if = {
			limit = {
				owns_entire_state_region = STATE_COLLASUYU
			}
			random_scope_state = {
				limit = {
					state_region = s:STATE_COLLASUYU
				}
				save_scope_as = collasuyu_state
			}
		}
	}
	
	option = {
		name = seizing_collasuyu.1.a
		default_option = yes
		if = {
			limit = {
				country_has_primary_culture = cu:quechua #DVG
			}
			scope:collasuyu_state = {
				state_region = {
					add_homeland = quechua #DVG
				}
			}
		}
		
		
		scope:collasuyu_state = {
			add_modifier = {
				name = patagonian_settlement
				months = long_modifier_time
			}
		}
	}
}